package com.murray.assignment.pojo;

import java.util.Date;
import java.util.List;

/**
 * @author Murray
 * @Date 2021/8/13
 * @Time 15:04
 * @Descrition 订单表
 */
public class Orders {
    private Integer orderId;
    private Integer userId;
    private OrderState orderState;
    private Integer addressId;

    public void setOrderAmount(double orderAmount) {
        this.orderAmount = orderAmount;
    }

    private double orderAmount;
    private Integer orderDiscount;
    private Date bestTime;
    private String consignee;
    private String mobile;
    private String shipWay;
    private String shippingName;
    private String payName;
    private double giftMoney;
    private Date addTime;
    private Date sendTime;
    private Date confirmTime;
    private Date payTime;
    private Integer shipNumber;
    private List<OrderDetails> orderDetailsList;

    public List<OrderDetails> getOrderDetailsList() {
        return orderDetailsList;
    }

    public void setOrderDetailsList(List<OrderDetails> orderDetailsList) {
        this.orderDetailsList = orderDetailsList;
    }

    public OrderState getOrderState() {
        return orderState;
    }

    public void setOrderState(OrderState orderState) {
        this.orderState = orderState;
    }

    public double getOrderAmount() {
        return orderAmount;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", orderState=" + orderState +
                ", addressId=" + addressId +
                ", orderAmount=" + orderAmount +
                ", orderDiscount=" + orderDiscount +
                ", bestTime=" + bestTime +
                ", consignee='" + consignee + '\'' +
                ", mobile='" + mobile + '\'' +
                ", shipWay='" + shipWay + '\'' +
                ", shippingName='" + shippingName + '\'' +
                ", payName='" + payName + '\'' +
                ", giftMoney=" + giftMoney +
                ", addTime=" + addTime +
                ", sendTime=" + sendTime +
                ", confirmTime=" + confirmTime +
                ", payTime=" + payTime +
                ", shipNumber=" + shipNumber +
                ", orderDetailsList=" + orderDetailsList +
                '}';
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }



    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }


    public Integer getOrderDiscount() {
        return orderDiscount;
    }

    public void setOrderDiscount(Integer orderDiscount) {
        this.orderDiscount = orderDiscount;
    }

    public Date getBestTime() {
        return bestTime;
    }

    public void setBestTime(Date bestTime) {
        this.bestTime = bestTime;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getShipWay() {
        return shipWay;
    }

    public void setShipWay(String shipWay) {
        this.shipWay = shipWay;
    }

    public String getShippingName() {
        return shippingName;
    }

    public void setShippingName(String shippingName) {
        this.shippingName = shippingName;
    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public double getGiftMoney() {
        return giftMoney;
    }

    public void setGiftMoney(double giftMoney) {
        this.giftMoney = giftMoney;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getShipNumber() {
        return shipNumber;
    }

    public void setShipNumber(Integer shipNumber) {
        this.shipNumber = shipNumber;
    }

    public Orders() {
    }

    public Orders(Integer orderId, Integer userId, Integer osId, Integer addressId, Integer orderAmount, Integer orderDiscount, Date bestTime, String consignee, String mobile, String shipWay, String shippingName, String payName, double giftMoney, Date addTime, Date sendTime, Date confirmTime, Date payTime, Integer shipNumber) {
        this.orderId = orderId;
        this.userId = userId;
        this.addressId = addressId;
        this.orderAmount = orderAmount;
        this.orderDiscount = orderDiscount;
        this.bestTime = bestTime;
        this.consignee = consignee;
        this.mobile = mobile;
        this.shipWay = shipWay;
        this.shippingName = shippingName;
        this.payName = payName;
        this.giftMoney = giftMoney;
        this.addTime = addTime;
        this.sendTime = sendTime;
        this.confirmTime = confirmTime;
        this.payTime = payTime;
        this.shipNumber = shipNumber;
    }
}
